# coding: utf-8
# @Author : lryself
# @Date : 2020/11/3 21:32
# @Software: PyCharm
from . import db


class InformationInfo(db.Model):
    __tablename__ = 'information_info'

    informationID = db.Column(db.String(30), primary_key=True, info='资料主键')
    title = db.Column(db.String(255, 'utf8_general_ci'), nullable=False, info='标题')
    text = db.Column(db.String, info='资料内容')
    parentCodeID = db.Column(db.String(30, 'utf8_general_ci'), nullable=False, server_default=db.FetchedValue(), info='父节点')
    createTime = db.Column(db.DateTime, nullable=False, server_default=db.FetchedValue(), info='创建时间')
